header.main-header
  a href="/"
    .logo
      span.logo-lg
        b 汽修经营系统
  nav.navbar.navbar-static-top
   
    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
    </a>

    .navbar-custom-menu
      ul.nav.navbar-nav

        - if user_signed_in?
          li
            == link_to "登出", destroy_user_session_path, :method => :delete
        - else
          li
            == link_to "登入", new_user_session_path
        - if user_signed_in?
          li.dropdown.user.user-menu
            a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"

              span.hidden-xs
                = current_user.email

            ul.dropdown-menu

              li.user-header

                p
                  = current_user.email
                  small #{current_user.name}




